package com.worthtech.billportal.bean;

/**
 * CsLiqPostId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class CsLiqPostId implements java.io.Serializable {

	// Fields

	private String csLiqMercode;
	private String csLiqTermcode;
	private String csLiqCode;
	private String csLiqMinamt;
	private String csLiqMaxamt;

	// Constructors

	/** default constructor */
	public CsLiqPostId() {
	}

	/** full constructor */
	public CsLiqPostId(String csLiqMercode, String csLiqTermcode,
			String csLiqCode, String csLiqMinamt, String csLiqMaxamt) {
		this.csLiqMercode = csLiqMercode;
		this.csLiqTermcode = csLiqTermcode;
		this.csLiqCode = csLiqCode;
		this.csLiqMinamt = csLiqMinamt;
		this.csLiqMaxamt = csLiqMaxamt;
	}

	// Property accessors

	public String getCsLiqMercode() {
		return this.csLiqMercode;
	}

	public void setCsLiqMercode(String csLiqMercode) {
		this.csLiqMercode = csLiqMercode;
	}

	public String getCsLiqTermcode() {
		return this.csLiqTermcode;
	}

	public void setCsLiqTermcode(String csLiqTermcode) {
		this.csLiqTermcode = csLiqTermcode;
	}

	public String getCsLiqCode() {
		return this.csLiqCode;
	}

	public void setCsLiqCode(String csLiqCode) {
		this.csLiqCode = csLiqCode;
	}

	public String getCsLiqMinamt() {
		return this.csLiqMinamt;
	}

	public void setCsLiqMinamt(String csLiqMinamt) {
		this.csLiqMinamt = csLiqMinamt;
	}

	public String getCsLiqMaxamt() {
		return this.csLiqMaxamt;
	}

	public void setCsLiqMaxamt(String csLiqMaxamt) {
		this.csLiqMaxamt = csLiqMaxamt;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CsLiqPostId))
			return false;
		CsLiqPostId castOther = (CsLiqPostId) other;

		return ((this.getCsLiqMercode() == castOther.getCsLiqMercode()) || (this
				.getCsLiqMercode() != null
				&& castOther.getCsLiqMercode() != null && this
				.getCsLiqMercode().equals(castOther.getCsLiqMercode())))
				&& ((this.getCsLiqTermcode() == castOther.getCsLiqTermcode()) || (this
						.getCsLiqTermcode() != null
						&& castOther.getCsLiqTermcode() != null && this
						.getCsLiqTermcode()
						.equals(castOther.getCsLiqTermcode())))
				&& ((this.getCsLiqCode() == castOther.getCsLiqCode()) || (this
						.getCsLiqCode() != null
						&& castOther.getCsLiqCode() != null && this
						.getCsLiqCode().equals(castOther.getCsLiqCode())))
				&& ((this.getCsLiqMinamt() == castOther.getCsLiqMinamt()) || (this
						.getCsLiqMinamt() != null
						&& castOther.getCsLiqMinamt() != null && this
						.getCsLiqMinamt().equals(castOther.getCsLiqMinamt())))
				&& ((this.getCsLiqMaxamt() == castOther.getCsLiqMaxamt()) || (this
						.getCsLiqMaxamt() != null
						&& castOther.getCsLiqMaxamt() != null && this
						.getCsLiqMaxamt().equals(castOther.getCsLiqMaxamt())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getCsLiqMercode() == null ? 0 : this.getCsLiqMercode()
						.hashCode());
		result = 37
				* result
				+ (getCsLiqTermcode() == null ? 0 : this.getCsLiqTermcode()
						.hashCode());
		result = 37 * result
				+ (getCsLiqCode() == null ? 0 : this.getCsLiqCode().hashCode());
		result = 37
				* result
				+ (getCsLiqMinamt() == null ? 0 : this.getCsLiqMinamt()
						.hashCode());
		result = 37
				* result
				+ (getCsLiqMaxamt() == null ? 0 : this.getCsLiqMaxamt()
						.hashCode());
		return result;
	}

}